package com.ruoyi.web.controller.tool;



import java.util.List;
import java.util.Map;

public class JsonResult<T> /*extends LinkedHashMap<String, Object>*/ {
    private T data;
    private String code;
    private String msg;
    private Map<String,T> shujus;
    private Map<String,List<T>> datees;
    private String values;


    private String urls;
    private String fileName;
    private Map<String, String> path;

    private Map<String,Object>jieguos;
    /**
     * 若没有数据返回，默认状态码为 0，提示信息为“操作成功！”
     */
    public JsonResult() {
        this.code = "0";
        this.msg = "操作成功！";
    }

    /**
     * 若没有数据返回，可以人为指定状态码和提示信息
     * @param code
     * @param msg
     */
    public JsonResult(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    /**
     * 有数据返回时，状态码为 0，默认提示信息为“操作成功！”
     * @param data
     */
    public JsonResult(T data) {
        this.data = data;
        this.code = "0";
        this.msg = "操作成功！";
    }

    /**
     * 有数据返回，状态码为 0，人为指定提示信息
     * @param data
     * @param msg
     */
    public JsonResult(T data, String msg) {
        this.data = data;
        this.code = "0";
        this.msg = msg;
    }


    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }



    public String getValues() {
        return values;
    }

    public void setValues(String values) {
        this.values = values;
    }



    public String getUrls() {
        return urls;
    }

    public void setUrls(String urls) {
        this.urls = urls;
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }


    public Map<String, String> getPath() {
        return path;
    }

    public void setPath(Map<String, String> path) {
        this.path = path;
    }


    public Map<String, Object> getJieguos() {
        return jieguos;
    }

    public void setJieguos(Map<String, Object> jieguos) {
        this.jieguos = jieguos;
    }

    public Map<String, T> getShujus() {
        return shujus;
    }

    public void setShujus(Map<String, T> shujus) {
        this.shujus = shujus;
    }

    public Map<String, List<T>> getDatees() {
        return datees;
    }

    public void setDatees(Map<String, List<T>> datees) {
        this.datees = datees;
    }

}
